TypeError: Rule.__init__() got an unexpected keyword argument 'method'